Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BF: Correct viewers _on_mouse, _on_scroll for non RAS matrices #1349

Closed
wants to merge 2 commits into from

Conversation

gjpcbecq
Copy link
Contributor

This is the second part of the correction of bugs in viewers.py for matrices with non RAS orientation.
Corrections have been made on _on_mouseand _on_scroll.
I don't know where the original code comes from, but there was an erroneous index positioning a la Matlab style...
There was also confusing ordering of indices and matching from axis to matrices and right values to be passed to the affine transform.
I think that it can be rewritted to be more easier to understand, but I have no time now.
Best regards,
Guillaume

@gjpcbecq gjpcbecq closed this Sep 10, 2024
@gjpcbecq gjpcbecq reopened this Sep 10, 2024
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.36%. Comparing base (83eaf0b) to head (6bfdcaf).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1349      +/-   ##
==========================================
+ Coverage   95.34%   95.36%   +0.02%     
==========================================
  Files         207      207              
  Lines       29507    29646     +139     
  Branches     4982     4985       +3     
==========================================
+ Hits        28134    28273     +139     
  Misses        932      932              
  Partials      441      441              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gjpcbecq gjpcbecq changed the title Correct viewers BF: Correct viewers Sep 11, 2024
@gjpcbecq gjpcbecq changed the title BF: Correct viewers BF: Correct viewers _on_mouse, _on_scroll Sep 11, 2024
@gjpcbecq gjpcbecq changed the title BF: Correct viewers _on_mouse, _on_scroll BF: Correct viewers _on_mouse, _on_scroll for non RAS matrices Sep 11, 2024
@gjpcbecq
Copy link
Contributor Author

Sorry I did not check for the style... It seems that missing or added spaces and double quotes are not validated.
I will take this in consideration next time.

@gjpcbecq gjpcbecq closed this Sep 11, 2024
@effigies
Copy link
Member

Just run ruff check --fix && ruff format, and commit the results. Should be enough.

@gjpcbecq
Copy link
Contributor Author

Just run ruff check --fix && ruff format, and commit the results. Should be enough.

Doing that asap.
Many thanks Chris 🙇‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants